package com.woniuxy.aspectj;

import com.woniuxy.JDKproxy.service.RbacRoleService;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class TestAspectJAop {
    public static void main(String[] args) {
        ApplicationContext applicationContext = new ClassPathXmlApplicationContext("applicationContext.xml");
        RbacRoleService rbacRoleService = (RbacRoleService) applicationContext.getBean("rbacRoleServiceImpl");
        rbacRoleService.findAll();
        rbacRoleService.removeOne(1);
    }
}
